home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_hidethings.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  64 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_HideThings.cog
  4. #
  5. # Hides things at startup until you enter one of two sectors
  6. # Use (carefully) to hide things too far away or otherwise non-LOS to player
  7. #
  8. #
  9. # [SXC]
  10. #
  11. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  12. # ========================================================================================
  13.  
  14. symbols
  15.     message    startup
  16.     message    entered
  17.  
  18.     thing        hidething0    nolink
  19.     thing        hidething1    nolink
  20.     thing        hidething2    nolink
  21.     thing        hidething3    nolink
  22.     thing        hidething4    nolink
  23.     thing        hidething5    nolink
  24.     thing        hidething6    nolink
  25.     thing        hidething7    nolink
  26.     thing        hidething8    nolink
  27.     thing        hidething9    nolink
  28.  
  29.     sector    drawthing1
  30.     sector    drawthing2
  31.  
  32.     int        i=0    local        // counter    
  33.     int        drawn=0    local
  34. end
  35.  
  36. code
  37. # ........................................................................................
  38.  
  39. startup:
  40.     for (i=0;i<10;i=i+1)
  41.     {
  42.         SetThingFlags(hidething0[i], 16);
  43.     }
  44.     return;
  45.  
  46. # ........................................................................................
  47.  
  48. entered:
  49.     if (drawn) return;
  50.     
  51.     drawn = 1;
  52.     
  53.     Sleep(2);
  54.     for (i=0;i<10;i=i+1)
  55.     {
  56.         ClearThingFlags(hidething0[i], 16);
  57.     }
  58.     return;
  59.  
  60. end
  61.  
  62.  
  63.  
  64.